package com.nny.alarm.menu;

import com.nny.alarm.R;
import com.nny.alarm.widget.ActionBar;
import com.uxwine.cmm.BaseActivity;

import android.os.Bundle;
import android.text.Html;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class HelpActivity extends BaseActivity implements ActionBar.OnActionListener
{
	Button mbtnShowMain;
	ActionBar mBar;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_help);
		mBar = (ActionBar)findViewById(R.id.userguide_title);
		
		initTextView();
		mBar.setOnActionListener(this);
	}
	
	void initTextView()
	{
		TextView tv = (TextView)findViewById(R.id.help_tv_2);
		tv.setText(Html.fromHtml(getString(R.string.guide_tv_2)));

		tv = (TextView)findViewById(R.id.help_tv_4);
		tv.setText(Html.fromHtml(getString(R.string.guide_tv_4)));
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event)
	{
		switch (keyCode)
		{
		case KeyEvent.KEYCODE_VOLUME_DOWN:

		case KeyEvent.KEYCODE_VOLUME_UP:
			break;
		default:
			break;
		}
		return super.onKeyDown(keyCode, event);
	}

	

	public void onClickEvent(View v)
	{
		if (v.getId() == R.id.main_btn_more)
		{		
		}
	}
	
	@Override
	public void onAction(ActionBar bar, View v, int action)
	{
		if(action == ActionBar.ACTION_BACK)
		{
			finish();
		}
	}
}
